<form method="post">
    <div class="panel dux-box">
    <div class="table-tools clearfix ">
        <div class="float-left">
            <form method="post" action="{:U()}">
                <div class="form-inline">
                    <div class="form-group">
                        <div class="field">
                            <input type="text" class="input" id="keyword" name="keyword" size="20" value="{$keyword}" placeholder="员工名称/真实姓名/邮箱">
                        </div>
                    </div>
                    <div class="form-button">
                        <button class="button" type="submit">搜索</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="float-right">
            <form method="post" action="{:U()}">
                <div class="form-inline">
                    <div class="form-group">
                        <div class="field">
                            <select class="input" name="department_id">
                                <option value="0">==选择部门==</option>
                                <volist name="departmentList" id="val">
                                <if condition="$departmentId eq $val['department_id']">
                                    <option value="{$val['department_id']}" selected>
                                <else/>
                                    <option value="{$val['department_id']}">
                                </if>
                                        {$val['department_name']}
                                    </option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="form-button">
                        <button class="button" type="submit">筛选</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
        <div class="table-responsive">
            <table id="table" class="table table-hover">
                <tbody>
                    <tr>
                        <th width="100">编号</th>
                        <th width="*">员工名称</th>
                        <th width="*">分店</th>
                        <th width="*">员工艺名</th>
                        <th width="*">真实姓名</th>
                        <th width="*">部门</th>
                        <th width="*">职务</th>
                        <th width="*">手机</th>
                        <th width="*">邮箱</th>
                        <th width="*">状态</th>
                        <th width="*">最后登录时间</th>
                        <th width="*">最后登录IP</th>
                        <th width="*">创建者</th>
                        <th width="100">操作</th>
                    </tr>
                    <volist name="list" id="val">
                        <tr>
                            <td>{$val['employee_id']}</td>
                            <td>{$val['employee_name']}</td>
                            <td>{$val['store_name']}</td>
                            <td>{$val['employee_stage_name']}</td>
                            <td>{$val['employee_real_name']}</td>
                            <td>{$val['department_name']}</td>
                            <td>{$val['job_name']}</td>
                            <td>{$val['employee_mobile']}</td>
                            <td>{$val['employee_email']}</td>
           					<td>
		                        <if condition="$val['employee_status'] eq 1">
                                   <a class="tag bg-green  js-action" href="javascript:;" title="禁用" url="{:U('state',array('employee_id'=>$val['employee_id']))}" data="2" success=" window.location.reload();"  >正常</a>
                                   <else/>
                                   <a class="tag bg-red  js-action" href="javascript:;" title="启用" url="{:U('state',array('employee_id'=>$val['employee_id']))}" data="1" success=" window.location.reload();" >禁用</a>
		                       </if>
                    		</td>
                            <td>
                            	{$val['employee_login_time']|date='Y-m-d H:i:s',###}
                            </td>
                            <td>{$val['employee_login_ip']}</td>
                            <td>{$val['operator_name']}</td>
                            <td>
                                <a class="button bg-blue button-small icon-pencil" href="{:U('Employee/edit',array('employee_id'=>$val['employee_id']))}" title="修改"></a>
                                <a class="button bg-red button-small icon-trash-o js-del" href="javascript:;" url="{:U('Employee/del')}" data="{$val['employee_id']}" title="删除"></a>
                            </td>
                        </tr>
                    </volist>
                </tbody>
            </table>
        </div>
        <div class="panel-foot table-foot clearfix">{$page}</div>
    </div>
</form>
<script>
    Do.ready('base', function () {
       $('#table').duxTable({});
    });
</script>